<?php
class controller{
	public function __construct(){
		global $db;
		$this->db=$db;

		//上一页地址
		$this->FORWORD='';
		if(isset($_SERVER['HTTP_REFERER'])) $this->FORWORD=$_SERVER['HTTP_REFERER'];
	}
}